package net.sk.china.platform.service.city;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.platform.model.city.CityMenu;
import net.sk.china.platform.request.city.CityMenuRequest;
import net.sk.china.platform.request.city.CityMenuSearchRequest;
import net.sk.china.platform.response.menu.MenuCheckResponse;

import java.util.List;

/**
 * CityMenuService 接口
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2024 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2024/6/12 09:31
 * +----------------------------------------------------------------------
 */
public interface CityMenuService extends IService<CityMenu> {

    /**
     * 列表
     * @param request 请求参数
     * @return {@code List<CityMenu>}
     */
    List<CityMenu> getList(CityMenuSearchRequest request);

    /**
     * 新增菜单
     * @param request 菜单参数
     * @return {@code boolean}
     */
    boolean add(CityMenuRequest request);

    /**
     * 根据id删除菜单
     * @param id 菜单id
     * @return {@code boolean}
     */
    boolean deleteById(Integer id);

    /**
     * 修改菜单
     * @param request 菜单参数
     * @return {@code boolean}
     */
    boolean edit(CityMenuRequest request);

    /**
     * 获取菜单详情
     * @param id 菜单id
     * @return {@code CityMenu}
     */
    CityMenu getInfo(Integer id);

    /**
     * 修改菜单显示状态
     * @param id 菜单id
     * @return {@code boolean}
     */
    boolean updateShowStatus(Integer id);

    /**
     * 菜单缓存树
     * @return {@code List<MenuCheckResponse>}
     */
    List<MenuCheckResponse> getCacheTree();
}
